// Tab 页面
import 'package:flutter/material.dart';

class ShowPage extends StatefulWidget {
  const ShowPage({
    super.key,
    required this.text,
    required this.myFontSize
  });

  final String text;
  final double myFontSize;

  @override
  PageState createState() => PageState();
}

class PageState extends State<ShowPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: const EdgeInsets.all(2), // 外边距
        padding: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
        child: Text(
          widget.text,
          style: TextStyle(fontSize: widget.myFontSize),
        )
    );
  }
}